
var aladinSDK = function (t) {
    function e(n) {
        if (i[n]) return i[n].exports;
        var r = i[n] = {
            i: n,
            l: !1,
            exports: {}
        };
        return t[n].call(r.exports, r, r.exports, e), r.l = !0, r.exports;
    }
    var i = {};
    return e.m = t, e.c = i, e.d = function (t, i, n) {
        e.o(t, i) || Object.defineProperty(t, i, {
            enumerable: !0,
            get: n
        });
    }, e.r = function (t) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
            value: "Module"
        }), Object.defineProperty(t, "__esModule", {
            value: !0
        });
    }, e.t = function (t, i) {
        if (1 & i && (t = e(t)), 8 & i) return t;
        if (4 & i && "object" == typeof t && t && t.__esModule) return t;
        var n = Object.create(null);
        if (e.r(n), Object.defineProperty(n, "default", {
            enumerable: !0,
            value: t
        }), 2 & i && "string" != typeof t) for (var r in t) e.d(n, r, function (e) {
            return t[e];
        }.bind(null, r));
        return n;
    }, e.n = function (t) {
        var i = t && t.__esModule ? function () {
            return t.default;
        } : function () {
            return t;
        };
        return e.d(i, "a", i), i;
    }, e.o = function (t, e) {
        return Object.prototype.hasOwnProperty.call(t, e);
    }, e.p = "", e(e.s = 10);
}([function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = function () {
        function t() { }
        return t.conf = {
            stage: null,
            sdk_version: "1.4.0",
            appid: "",
            base_url: "https://mprogram.boomegg.cn/sprogram/ads/c/ad/",
            reportUrl: "https://distribute-stats.boomegg.cn",
            TinySprite: "https://ad-static.boomegg.cn/imgs/sdks/sdk_v1.png",
            texture: null,
            showTureType: 2,
            theme: 2,
            more_width: 144,
            more_height: 144,
            customizeBannerLeft: 0,
            customizeBannerRight: 0,
            interval: 1e4,
            banner_interval: 6e4,
            changelog: "",
            changelogArr: [],
            allowShare: 0,
            init_suc: !1,
            is_report: !0,
            windowWidth: 0,
            windowHeight: 0,
            default_params: {},
            gdt_pos_left: 0,
            gdt_pos_top: 0,
            gdt_pos_width: 300,
            gdt_pos_height: 100,
            coverleft: !1,
            coverright: !1,
            covertop: !1,
            coverbottom: !1,
            stageWidth: 0,
            stageHeight: 0,
            cb: null,
            openId: "",
            extraAppId: "",
            gdt: ""
        }, t.spriteConf = [[[319, 1, 115, 205], [121, 208, 118, 113], [57, 1, 51, 59]], [[209, 1, 108, 205], [241, 208, 133, 115], [4, 1, 51, 59]], [[110, 1, 97, 205], [1, 208, 118, 113], [1, 1, 51, 59]]],
            t.maskSpriteConf = [1, 1, 1, 1], t.switches = {
                isShowMore: !1,
                isShowBanner: !1,
                isShowGDT: !1
            }, t;
    }();
    e.Data = n;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = function () {
        function t() { }
        return t.initReportParam = function () {
            t._handleAdSource();
            var e, i, r, a, s, o = wx.getSystemInfoSync();
            e = o.language, i = o.platform, r = o.model, a = o.system, s = o.version, t.commStr.report_prefix1 = "t_event|distribute_all|",
                t.commStr.report_prefix2 = i + "|" + r + "|" + t.commStr.version + "|" + a + "||||" + e + "||" + s + "|" + n.Data.conf.appid + "|" + t.adStr.Ads + " |" + t.adStr.AdsPos + "|" + t.adStr.Layers + "|0|";
        }, t._handleAdSource = function () {
            var e = wx.getLaunchOptionsSync(), i = "", n = "", r = "", a = e.query;
            if (a.scene) {
                var s = a.scene;
                if (s) {
                    var o = decodeURIComponent(s).split(",");
                    i = o[0], n = o[1], r = o[2];
                }
            } else if (a.Ads) i = a.tgt ? a.tgt : "", n = a.Ads ? a.Ads : "", r = a.AdsPos ? a.AdsPos : ""; else if (e.referrerInfo && e.referrerInfo.extraData && e.referrerInfo.extraData.Ads) {
                var h = e.referrerInfo.extraData;
                i = h.tgt ? h.tgt : "", n = h.Ads ? h.Ads : "", r = h.AdsPos ? h.AdsPos : "";
            }
            t.adStr.Ads = n, t.adStr.AdsPos = r, t.adStr.SourceAppId = i;
        }, t.reportWithAppId = function (e, i, r) {
            void 0 === r && (r = ""), n.Data.conf.appid = e, t.initReportParam(), t._report(i, r);
        }, t.report = function (e, i) {
            void 0 === i && (i = ""), n.Data.conf.init_suc && n.Data.conf.is_report ? t._report(e, i) : console.log("%c 上报先于Init,请调用reportWithAppId方法,具体参数请查看文档", "color:#ff0000;font-size:35px;");
        }, t._report = function (e, i) {
            void 0 === i && (i = "");
            var r = e.split("_"), a = 0;
            if (r.length < 2) wx.showToast({
                title: "参数传递错误",
                icon: "none"
            }); else {
                if (e == t.ReportTypes.OPEN_ID) {
                    if (!i) return void console.log("%c 上报失败!上报OPEN_ID时,第二个参数必须传递openId", "color:#ff0000;font-size:35px;");
                    n.Data.conf.openId = i;
                } else n.Data.conf.extraAppId = i;
                if (e == t.ReportTypes.PAY_MENT) {
                    if ("number" != typeof i) return void wx.showToast({
                        title: "参数传递错误，int类型",
                        icon: "none",
                        duration: 3e3
                    });
                    a = i;
                }
                var s = r[0], o = r[1], h = t.commStr.report_prefix1 + t._getCurrentDate() + "|" + t._getTimeStapm() + "|" + t.commStr.report_prefix2 + n.Data.conf.openId + "|" + s + "|" + o + "|" + a + "|" + n.Data.conf.extraAppId;
                t.raw_report(h);
            }
        }, t._getCurrentDate = function () {
            var t = new Date(), e = t.getFullYear().toString(), i = (t.getMonth() + 1).toString(), n = t.getDate().toString();
            return 1 == i.length && (i = "0" + i), 1 == n.length && (n = "0" + n), Number(e + i + n);
        }, t._getTimeStapm = function () {
            return Date.parse(new Date().toString()) / 1e3;
        }, t.raw_report = function (e) {
            console.log(e);
            var i = t._base64encode(e);
            wx.request({
                url: n.Data.conf.reportUrl + "/report",
                header: {
                    "content-type": "application/x-www-form-urlencoded"
                },
                data: {
                    info: i
                },
                method: "post",
                success: function () { }
            });
        }, t._base64encode = function (t) {
            var e, i, n, r, a, s, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
            for (n = t.length, i = 0, e = ""; i < n;) {
                if (r = 255 & t.charCodeAt(i++), i == n) {
                    e += o.charAt(r >> 2), e += o.charAt((3 & r) << 4), e += "==";
                    break;
                }
                if (a = t.charCodeAt(i++), i == n) {
                    e += o.charAt(r >> 2), e += o.charAt((3 & r) << 4 | (240 & a) >> 4), e += o.charAt((15 & a) << 2),
                        e += "=";
                    break;
                }
                s = t.charCodeAt(i++), e += o.charAt(r >> 2), e += o.charAt((3 & r) << 4 | (240 & a) >> 4),
                    e += o.charAt((15 & a) << 2 | (192 & s) >> 6), e += o.charAt(63 & s);
            }
            return e;
        }, t.ReportTypes = {
            SHOW: "1_1",
            LOGIN: "1_2",
            OPEN_ID: "1_3",
            AUTH: "1_4",
            SHARE: "1_5",
            LIKE_CLICK: "1_6",
            DRAWER_CLICK: "1_7",
            LIKE_SHOW: "1_8",
            DRAWER_SHOW: "1_9",
            PAY_MENT: "6_1",
            MORE_FOLD: "2_1",
            MORE_CLICK: "2_2",
            MORE_LONG_CLICK: "2_3"
        }, t.commStr = {
            report_prefix1: "",
            report_prefix2: "",
            version: ""
        }, t.adStr = {
            Ads: "",
            AdsPos: "",
            SourceAppId: "",
            Layers: 0
        }, t;
    }();
    e.Report = r;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = i(6), a = function () {
        function t() { }
        return t.show = function (e) {
            e != r.Carousel.TYPES.MORE || t.cache.more_container.visible || (t.cache.more_container.visible = !0,
                r.Carousel.Run(e));
        }, t.HideMore = function () {
            t.hide(r.Carousel.TYPES.MORE);
        }, t.ShowMore = function () {
            console.log("showmore"), t.show(r.Carousel.TYPES.MORE);
        }, t.hide = function (e) {
            console.log("hideMore"), r.Carousel.StopNextTimer(e), t.cache.more_container.visible = !1,
                r.Carousel.ClearAniTimer();
        }, t.initNodes = function () {
            var e = new Laya.Sprite();
            e.width = n.Data.conf.more_width, e.height = n.Data.conf.more_height, e.name = "more_game",
                e.on(laya.events.Event.CLICK, this, r.Carousel.MoreClick);
            var i = new Laya.Sprite();
            i.addChild(e), i.x = 400, i.y = 400, t.cache.more_container = i, t.cache.more_node = e;
        }, t.getMoreNode = function () {
            return t.cache.more_node || t.initNodes(), t.cache.more_container;
        }, t._DownloadTexture = function (t, e, i) {
            var n = Laya.HTMLImage.create(t);
            n.onload = function () {
                var t = new Laya.Texture(n);
                e(t);
            };
        }, t.RenderTexture = function (e, i) {
            e == r.Carousel.TYPES.MORE && t._DownloadTexture(i, t.DownloadMoreSuc, t.DownloadMoreFail);
        }, t.DownloadMoreSuc = function (e) {
            for (var i = Math.ceil(e.width / n.Data.conf.more_width), a = [], s = 0; s < i; s++) {
                var o = Laya.Texture.createFromTexture(e, n.Data.conf.more_width * s, 0, n.Data.conf.more_width, n.Data.conf.more_height);
                a.push(o);
            }
            t.cache.tList = a, t.cache.count = i, t.cache.texture_height = e.height, t.cache.texture_width = e.width;
            var h = t.cache.more_node;
            h.width = n.Data.conf.more_width, h.height = n.Data.conf.more_height, h.x = 0, h.y = 0,
                r.Carousel.StartNextTimer(r.Carousel.TYPES.MORE), r.Carousel.ClearAniTimer(), e.width > 1.5 * n.Data.conf.more_width ? r.Carousel.data.timer.more_ani_timer = setInterval(t.Animation, 60) : (h.graphics.clear(),
                    t.cache.more_node.graphics.drawTexture(t.cache.tList[0], 0, 0));
        }, t.DownloadMoreFail = function () {
            r.Carousel.Next(r.Carousel.TYPES.MORE);
        }, t.Animation = function () {
            t.cache._index < t.cache.count ? (t.cache.more_node.graphics.clear(), t.cache.more_node.graphics.drawTexture(t.cache.tList[t.cache._index], 0, 0),
                t.cache._index++) : (r.Carousel.ClearAniTimer(), r.Carousel.data.timer.more_ani_finish_timer = setTimeout(t.AniFinish, 600));
        }, t.AniFinish = function () {
            t.cache.more_node.x = 0, t.cache._index = 0, r.Carousel.data.timer.more_ani_timer = setInterval(t.Animation, 60);
        }, t.cache = {
            more_container: null,
            more_node: null,
            mask: null,
            mask_node: null,
            more__node: null,
            texture_width: 144,
            texture_height: 144
        }, t;
    }();
    e.More = a;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = i(9), a = i(6), s = function () {
        function t() { }
        return t.show = function (e) {
            e != a.Carousel.TYPES.BANNER || t.cache.banner_node.visible ? e == a.Carousel.TYPES.GDT && (r.GDT.data.adid || r.GDT.Run()) : (console.log("showbanner"),
                t.cache.banner_node.visible = !0, a.Carousel.Run(e));
        }, t.HideBanner = function () {
            t.hide(a.Carousel.TYPES.BANNER);
        }, t.ShowBanner = function () {
            t.show(n.Data.switches.isShowBanner ? a.Carousel.TYPES.BANNER : a.Carousel.TYPES.GDT);
        }, t.hide = function (e) {
            a.Carousel.StopNextTimer(e), e == a.Carousel.TYPES.MORE ? (t.cache.more_container.visible = !1,
                a.Carousel.ClearAniTimer()) : e == a.Carousel.TYPES.BANNER && (t.cache.banner_node.visible = !1,
                    r.GDT.Hide());
        }, t.initNodes = function () {
            var e = new Laya.Sprite();
            e.name = "banner_node", e.on(laya.events.Event.CLICK, this, a.Carousel.BannerClick),
                t.cache.banner_node = e;
        }, t.getBannerNode = function () {
            return t.cache.banner_node || t.initNodes(), t.cache.banner_node;
        }, t._DownloadTexture = function (t, e, i) {
            var n = Laya.HTMLImage.create(t);
            n.onload = function () {
                var t = new Laya.Texture(n);
                e(t);
            };
        }, t.RenderTexture = function (e, i) {
            t._DownloadTexture(i, t.DownloadBannerSuc, t.DownloadBannerFail);
        }, t.DownloadBannerSuc = function (e) {
            var i = t.cache.banner_node;
            i.width = e.width, i.height = e.height, console.log(t.cache.banner_node.x, "Banner.cache.banner_node.x"),
                t.cache.banner_node.x || t.cache.banner_node.y || (t.cache.banner_node.x = (Laya.stage.designWidth - i.width) / 2,
                    t.cache.banner_node.y = Laya.stage.designHeight - i.height), i.graphics.clear(),
                i.graphics.drawTexture(e, 0, 0), i.visible = !0, a.Carousel.StopNextTimer(a.Carousel.TYPES.BANNER),
                a.Carousel.StartNextTimer(a.Carousel.TYPES.BANNER);
        }, t.DownloadBannerFail = function () {
            a.Carousel.Next(a.Carousel.TYPES.BANNER);
        }, t.cache = {
            banner_node: null,
            banner__node: null,
            texture_width: 144,
            texture_height: 144
        }, t;
    }();
    e.Banner = s;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = function () {
        function t() { }
        return t.GetImgType = function (t) {
            var e = t.split("/");
            return e[e.length - 1].split("?")[0].split(".")[1];
        }, t._parseQueryString = function (t) {
            var e = {};
            if (!t) return e;
            for (var i, n = t.split("&"), r = 0; r < n.length; r++) e[(i = n[r].split("="))[0]] = i[1];
            return e;
        }, t._buildQueryString = function (t) {
            var e = [];
            for (var i in t) t.hasOwnProperty(i) && e.push(i + "=" + t[i]);
            return e.join("&");
        }, t._mergeParams = function (e, i) {
            var n = {};
            if (e && (n = t._parseQueryString(e)), i) for (var r in i) i.hasOwnProperty(r) && (n[r] = i[r]);
            return n;
        }, t.ParseNavigateParam = function (e) {
            var i = e[0], n = {}, r = e[2], a = {};
            if (r.indexOf("?") >= 0) {
                var s = r.split("?")[1];
                a = t._parseQueryString(s);
            }
            var o = "";
            (n = t._mergeParams(e[3], a)) && (o = t._buildQueryString(n)), r = r && r.indexOf("?") >= 0 ? r.split("?")[0] : "pages/index/index",
                o && (r += "?" + o);
            var h = i;
            if (e[1]) h = e[1]; else if (n.tgt) {
                var l = n.split("|");
                h = l[l.length - 1];
            }
            return {
                appId: i,
                path: r,
                extraData: n,
                target_appid: h
            };
        }, t;
    }();
    e.Utils = n;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = i(1), a = i(6), s = i(2), o = i(3), h = i(7), l = i(8), u = i(11), c = i(4), _ = i(12), d = function () {
        function t() { }
        return t.init = function (e, i, a, c, d) {
            void 0 === d && (d = !0);
            var f = {
                gdt_left: -1,
                gdt_top: -1,
                gdt_bottom: 0,
                gdt_right: -1,
                gdt_widht: 300
            };
            u.Intercept.init(), n.Data.conf.cb = c, n.Data.conf.is_report = d, r.Report.commStr.version = i,
                a && (f.gdt_left = void 0 != a.gdt_left ? a.gdt_left : f.gdt_left, f.gdt_top = void 0 != a.gdt_top ? a.gdt_top : f.gdt_top,
                    f.gdt_bottom = void 0 != a.gdt_bottom ? a.gdt_bottom : f.gdt_bottom, f.gdt_right = void 0 != a.gdt_right ? a.gdt_right : f.gdt_right,
                    f.gdt_widht = void 0 != a.gdt_widht ? a.gdt_widht : f.gdt_widht, n.Data.conf.theme = _.AladinSDK.Theme.BLUE,
                    a.theme && parseInt(a.theme) <= n.Data.spriteConf.length && (n.Data.conf.theme = parseInt(a.theme)));
            var p = wx.getSystemInfoSync();
            n.Data.conf.windowWidth = p.windowWidth, n.Data.conf.windowHeight = p.windowHeight,
                n.Data.conf.default_params = f, t.setGDT_pos(f, f.gdt_widht, 108 * f.gdt_widht / 375),
                t.data.isInited || (n.Data.conf.appid = e, t.data.isInited = !0, console.log("AladinSDK version(" + n.Data.conf.sdk_version + ") init success!"),
                    s.More.initNodes(), o.Banner.initNodes(), l.GuessLike.initNodes(), h.Drawer.Init(),
                    t.initData(), n.Data.conf.init_suc = !0, r.Report.initReportParam(), r.Report.report(r.Report.ReportTypes.SHOW));
        }, t.setGDT_pos = function (t, e, i) {
            var r = 0, a = 0, s = t.gdt_widht;
            a = -1 == t.gdt_top ? n.Data.conf.windowHeight - i - t.gdt_bottom - 5 : t.gdt_top,
                -1 == t.gdt_right && -1 == t.gdt_left ? r = (n.Data.conf.windowWidth - e) / 2 : -1 == t.gdt_right && -1 != t.gdt_left ? (n.Data.conf.coverleft = !0,
                    r = t.gdt_left) : (n.Data.conf.coverright = !0, r = n.Data.conf.windowWidth - e + t.gdt_right),
                n.Data.conf.gdt_pos_left = r, n.Data.conf.gdt_pos_top = a, n.Data.conf.gdt_pos_width = s;
        }, t.initData = function () {
            wx.request({
                url: n.Data.conf.base_url + "get_moregame",
                header: {
                    "content-type": "application/x-www-form-urlencoded"
                },
                data: {
                    id: n.Data.conf.appid,
                    version: r.Report.commStr.version,
                    sdk_version: n.Data.conf.sdk_version
                },
                method: "get",
                success: function (e) {
                    if (e.data) {
                        var i = n.Data.conf.TinySprite;
                        c.Utils.GetImgType(i), console.log("开始执行");
                        var r = Laya.HTMLImage.create(i);
                        r.onload = function () {
                            var i = new Laya.Texture(r);
                            n.Data.conf.texture = i, h.Drawer.RenderBGTexture(i), t.parseData(e);
                        };
                    } else console.log("提示：未配置数据，请联系对接人");
                }
            });
        }, t.parseData = function (e) {
            if (e.data && e.data.data) {
                var i = e.data.data;
                if (n.Data.conf.allowShare = e.data.open, i.redirect && wx.navigateToMiniProgram({
                    appId: i.redirect,
                    path: "pages/index/index",
                    success: function () { },
                    complete: function () { }
                }), i.changelog && (n.Data.conf.changelog = i.changelog, i.changelog.indexOf("$$") ? n.Data.conf.changelogArr = i.changelog.split("$$") : n.Data.conf.changelogArr.push(i.changelog)),
                    i.interval && (n.Data.conf.interval = i.interval), i.banner_interval && (n.Data.conf.banner_interval = i.banner_interval),
                    i.sdk_version && i.sdk_version != n.Data.conf.sdk_version) {
                    var r = i.sdk_version.split("."), s = n.Data.conf.sdk_version.split("."), o = parseInt(s[0]), u = parseInt(s[1]), c = parseInt(s[2]), _ = parseInt(r[0]), d = parseInt(r[1]), f = parseInt(r[2]);
                    o <= _ && u <= d && c < f && (console.log("%c 请升级SDK版本：", "color:red;font-size:26px;font-weight:bold;"),
                        console.log("%c 当前版本号：" + n.Data.conf.sdk_version, "color:#000;font-size:15px;"),
                        console.log("%c 最新版本号：" + i.sdk_version, "color:#000;font-size:15px;"), console.log("%c 修改内容 ：", "color:#000;font-size:17px;"),
                        n.Data.conf.changelogArr.forEach(function (t) {
                            console.log("%c     " + t, "color:#000;font-size:15px;");
                        }), console.log("%c 最新版本下载地址：http://ad-static.boomegg.cn/sdk/egret/" + i.sdk_version + ".zip", "color:#333;font-size:22px;font-weight:bold;"));
                }
                if (i.icons && i.icons.length > 0 && (t.data.more_list = i.icons, n.Data.switches.isShowMore = !0),
                    i.gdt && (n.Data.conf.gdt = i.gdt, n.Data.switches.isShowGDT = !0), i.bottoms && i.bottoms.length > 0 && (t.data.banner_list = i.bottoms,
                        n.Data.switches.isShowGDT || (n.Data.switches.isShowBanner = !0)), !(i.bottoms && 0 != i.bottoms.length || i.icons && 0 != i.icons.length || i.gdt && "" != i.gdt)) return console.log("提示：appid没配配置，请联系对接同学配置"),
                            void console.log(i);
                i.likes && i.likes.length > 0 && (l.GuessLike.showFavoNode(), l.GuessLike.RenderTextureFavo(),
                    l.GuessLike.RenderTexture(i.likes || [])), i.expands && i.expands.length > 0 && h.Drawer.InitList(i.expands),
                    a.Carousel.Init();
            } else console.log("get data error ...");
            n.Data.conf.cb && n.Data.conf.cb();
        }, t._preview = function (t, e) {
            r.Report.report(r.Report.ReportTypes.MORE_CLICK), wx.previewImage({
                urls: [t],
                success: function () {
                    r.Report.report(r.Report.ReportTypes.MORE_FOLD, e);
                }
            });
        }, t._toMiniProgram = function (t) {
            var e = c.Utils.ParseNavigateParam(t);
            wx.navigateToMiniProgram({
                appId: e.appId,
                path: e.path,
                extraData: e.extraData,
                success: function (t) {
                    r.Report.report(r.Report.ReportTypes.MORE_FOLD, e.target_appid);
                },
                complete: function (t) {
                    wx.hideLoading();
                }
            });
        }, t.data = {
            isInited: !1,
            more_list: [],
            banner_list: [],
            fn: null
        }, t;
    }();
    e.SDK = d;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = i(9), a = i(5), s = i(2), o = i(3), h = function () {
        function t() { }
        return t.Init = function () {
            n.Data.switches.isShowMore ? t.Run(t.TYPES.MORE) : s.More.hide(t.TYPES.MORE), n.Data.switches.isShowBanner ? t.Run(t.TYPES.BANNER) : o.Banner.hide(t.TYPES.BANNER),
                n.Data.switches.isShowGDT && r.GDT.Run();
        }, t.Next = function (e) {
            if (e == t.TYPES.BANNER) {
                var i = (t.data.current.banner + 1) % a.SDK.data.banner_list.length;
                if (t.data.current.banner == i) return;
                t.data.current.banner = i;
            } else {
                if (i = (t.data.current.more + 1) % a.SDK.data.more_list.length, t.data.current.more == i) return;
                t.data.current.more = i;
            }
            t.Run(e);
        }, t.Run = function (e) {
            var i = e == t.TYPES.BANNER ? a.SDK.data.banner_list : a.SDK.data.more_list, n = e == t.TYPES.BANNER ? t.data.current.banner : t.data.current.more;
            i && i.length > 0 && e == t.TYPES.BANNER ? o.Banner.RenderTexture(e, i[n][4]) : i && i.length > 0 && e == t.TYPES.MORE && s.More.RenderTexture(e, i[n][4]);
        }, t.StartNextTimer = function (e) {
            var i = 1 == e ? n.Data.conf.interval : n.Data.conf.banner_interval, r = setTimeout(function () {
                t.Next(e);
            }, i);
            e == t.TYPES.BANNER ? t.data.timer.next_banner_timer = r : t.data.timer.next_more_timer = r;
        }, t.StopNextTimer = function (e) {
            e == t.TYPES.MORE && t.data.timer.next_more_timer ? (clearTimeout(t.data.timer.next_more_timer),
                t.data.timer.next_more_timer = 0) : e == t.TYPES.BANNER && t.data.timer.next_banner_timer && (clearTimeout(t.data.timer.next_banner_timer),
                    t.data.timer.next_banner_timer = 0);
        }, t.ClearAniTimer = function () {
            t.data.timer.more_ani_timer && (clearInterval(t.data.timer.more_ani_timer), t.data.timer.more_ani_timer = 0),
                t.data.timer.more_ani_finish_timer && (clearTimeout(t.data.timer.more_ani_finish_timer),
                    t.data.timer.more_ani_finish_timer = 0);
        }, t.MoreClick = function () {
            a.SDK.data.more_list[t.data.current.more], a.SDK._toMiniProgram(a.SDK.data.more_list[t.data.current.more]),
                a.SDK.data.more_list.length > 1 && (t.StopNextTimer(t.TYPES.MORE), t.ClearAniTimer(),
                    t.Next(t.TYPES.MORE));
        }, t.BannerClick = function () {
            a.SDK.data.banner_list[t.data.current.banner], a.SDK._toMiniProgram(a.SDK.data.banner_list[t.data.current.banner]),
                t.StopNextTimer(t.TYPES.BANNER), t.Next(t.TYPES.BANNER);
        }, t.TYPES = {
            MORE: 1,
            BANNER: 2,
            GDT: 3
        }, t.data = {
            current: {
                more: 0,
                banner: 0
            },
            timer: {
                more_ani_timer: 0,
                more_ani_finish_timer: 0,
                next_more_timer: 0,
                next_banner_timer: 0
            }
        }, t;
    }();
    e.Carousel = h;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(4), r = i(1), a = i(0), s = function () {
        function t() { }
        return t.Init = function () {
            var e = new Laya.Sprite();
            e.name = "Drawer", e.width = Laya.stage.width, e.height = Laya.stage.height, e.on(laya.events.Event.CLICK, this, t.Hide),
                t.spriteCache[0] = e;
            var i = new Laya.Image();
            i.name = "BackGround", i.width = 642, i.height = 641, e.addChild(i), t.spriteCache[1] = i;
            var n = 1;
            n = Laya.stage.width > Laya.stage.height ? Laya.stage.height / 750 : Laya.stage.width / 750,
                i.scaleX = i.scaleY = n;
            var r = new Laya.Sprite();
            r.width = 60, r.height = 70, i.addChild(r), r.x = 581, r.y = 12, r.on(laya.events.Event.CLICK, this, t.Hide);
            var a = new Laya.Sprite();
            a.name = "ListContainer", a.width = 504, a.height = 608, i.addChild(a), a.x = 36,
                a.y = 29, t.listContainerNodeCache = a, e.visible = !1, e.x = 0, e.y = 0, Laya.stage.addChild(e),
                e.zOrder = 1e4, t.container = e, t.initSuc = !0;
        }, t.Show = function () {
            console.log("【aladinsdk】 show drawer"), t.container && t.isBgSuc && t.isIconSuc ? (t.isGetNode || (console.log("【aladinsdk】 show drawer reinsert node"),
                Laya.stage.removeChild(t.container), Laya.stage.addChild(t.container)), console.log("【aladinsdk】 show drawer visible true"),
                t.container.visible = !0, r.Report.report(r.Report.ReportTypes.DRAWER_SHOW)) : t.initSuc ? console.log("【aladinsdk】show drawer") : (console.log("【aladinsdk】show drawer error"),
                    console.log(t.container), console.log(t.isBgSuc), console.log(t.isIconSuc));
        }, t.GetDrawerNode = function () {
            return t.initSuc || t.Init(), Laya.stage.removeChild(t.container), t.isGetNode = !0,
                t.container;
        }, t.RenderBGTexture = function (e) {
            var i = a.Data.spriteConf[0];
            parseInt(a.Data.conf.theme) <= a.Data.spriteConf.length && (i = a.Data.spriteConf[parseInt(a.Data.conf.theme) - 1]);
            var n = a.Data.maskSpriteConf, r = (i[2], i[1]), s = t.spriteCache[0], o = Laya.Texture.createFromTexture(e, n[0], n[1], n[2], n[3]);
            s.graphics.drawTexture(o, 0, 0);
            var h = t.spriteCache[1], l = Laya.Texture.createFromTexture(e, r[0], r[1], r[2], r[3]);
            h.source = l, h.centerX = 0, h.centerY = 0, h.sizeGrid = "82,85,20,29,1", t.isBgSuc = !0;
        }, t.Hide = function () {
            t.container && !t.container.destroyed && (t.container.visible = !1);
        }, t.Toggle = function () {
            t.container && !t.container.destroyed ? t.container.visible = !t.container.visible : console.log("not valid or no container");
        }, t.click = function (e) {
            console.log("clicked : " + e.target.name), console.log(e);
            var i = e.currentTarget.name;
            console.log("event name:" + i);
            for (var a = function (t) {
                if (console.log("check name:" + t[0] + "," + t[1]), console.log(t), t[0] + "_" + t[1] == i) {
                    var e = n.Utils.ParseNavigateParam(t);
                    return console.log("navigate data:"), console.log(e), wx.navigateToMiniProgram({
                        appId: e.appId,
                        path: e.path,
                        extraData: e.extraData,
                        success: function (t) {
                            r.Report.report(r.Report.ReportTypes.DRAWER_CLICK, e.target_appid);
                        },
                        complete: function (t) {
                            wx.hideLoading();
                        }
                    }), "break";
                }
            }, s = 0, o = t.data; s < o.length && "break" !== a(o[s]); s++);
        }, t.picLoaded = function () { }, t.SetScale = function (e) {
            t.spriteCache[1].scale = e;
        }, t.InitList = function (e) {
            t.data = e;
            for (var i = t.listContainerNodeCache, n = 0, r = 0, a = e; r < a.length; r++) {
                var s = a[r], o = new Laya.Sprite();
                o.width = 144, o.height = 188;
                var h = n % 3, l = Math.floor(n / 3);
                o.x = 180 * h, o.y = 203 * l, o.name = s[0] + "_" + s[1], o.on(laya.events.Event.CLICK, this, t.click);
                var u = new Laya.Sprite(), c = Laya.HTMLImage.create(s[4]);
                c.picNode = u, c.onload = function () {
                    this.picNode.graphics.drawTexture(new Laya.Texture(this), 0, 0);
                };
                var _ = new Laya.Text();
                if (_.text = s[5], _.fontSize = 25, _.align = "center", _.color = "#fff", _.width = 144,
                    _.x = 0, _.y = 159, o.addChild(u), o.addChild(_), i.addChild(o), ++n >= 9) break;
            }
            t.isIconSuc = !0;
        }, t.container = null, t.initSuc = !1, t.data = [], t.spriteCache = [], t.listContainerNodeCache = null,
            t.isBgSuc = !1, t.isIconSuc = !1, t.isGetNode = !1, t;
    }();
    e.Drawer = s;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = i(4), a = i(1), s = function () {
        function t() { }
        return t.showFavoNode = function () {
            t.cache.favoNode.visible || (t.cache.favoNode.visible = !0, a.Report.report(a.Report.ReportTypes.LIKE_SHOW));
        }, t.hideFavoNode = function () {
            t.cache.favoNode.visible && (t.cache.favoNode.visible = !1);
        }, t.initNodes = function () {
            var e = new Laya.HBox();
            e.align = "middle", e.space = 20, e.width = 600, e.height = 205, e.x = 100, t.cache.HBox = e;
            var i = new Laya.Image();
            i.name = "favo_node", t.cache.favoNode = i, i.addChild(e);
        }, t.getFavoNode = function () {
            return t.cache.favoNode || t.initNodes(), t.cache.favoNode;
        }, t._DownloadTexture = function (t, e, i) {
            var n = Laya.HTMLImage.create(t[4]);
            n.onload = function () {
                var i = new Laya.Texture(n);
                e(i, t);
            };
        }, t.RenderTexture = function (e) {
            t.cache.dataList = e;
            for (var i = 0; i < e.length; i++) i < 3 && t._DownloadTexture(e[i], t.DownloadLikeSuc, t.DownloadLikeFail);
        }, t.DownloadLikeFail = function () { }, t.DownloadLikeSuc = function (e, i) {
            var n = new Laya.Box(), r = new Laya.Image(), a = new Laya.Text();
            n.width = 144, n.height = 205, console.log("list", i), n.name = i[1], r.width = 144,
                r.height = 144, r.y = 18, a.text = i[5], a.fontSize = 25, a.align = "center", a.color = "#fff",
                a.y = 170, a.width = 144, r.source = e, r.visible = !0, t.cache.HBox.addChild(n),
                n.addChild(r), n.addChild(a), n.on(laya.events.Event.CLICK, this, t.likeNodeClick);
        }, t.likeNodeClick = function (e) {
            for (var i = 0, n = t.cache.dataList; i < n.length; i++) {
                var s = n[i];
                if (s[1] == e.target.name) {
                    var o = r.Utils.ParseNavigateParam(s);
                    console.log("点击传递的参数"), console.log(o.appId), console.log(o.path), console.log(o.extraData),
                        wx.navigateToMiniProgram({
                            appId: o.appId,
                            path: o.path,
                            extraData: o.extraData,
                            success: function (t) {
                                a.Report.report(a.Report.ReportTypes.LIKE_CLICK, s[1]);
                            },
                            complete: function (t) {
                                wx.hideLoading();
                            }
                        });
                    break;
                }
            }
        }, t._DownloadFavoTexture = function (t, e, i) {
            n.Data.conf.texture && e(n.Data.conf.texture, t);
        }, t.RenderTextureFavo = function () {
            t._DownloadFavoTexture(t.cache.favoUrl, t.DownloadFavoSuc, t.DownloadFavoFail);
        }, t.DownloadFavoFail = function () { }, t.DownloadFavoSuc = function (e) {
            var i = n.Data.spriteConf[0][0];
            parseInt(n.Data.conf.theme) <= n.Data.spriteConf.length && (i = n.Data.spriteConf[parseInt(n.Data.conf.theme) - 1][0]);
            var r = Laya.Texture.createFromTexture(e, i[0], i[1], i[2], i[3]), a = t.cache.favoNode;
            a.width = 600, a.height = 205, t.cache.favoNode.x = (Laya.stage.designWidth - a.width) / 2,
                t.cache.favoNode.y = Laya.stage.designHeight - a.height - 300, a.source = r, a.sizeGrid = "0,24,0,78,1",
                a.visible = !0;
        }, t.cache = {
            favoNode: null,
            favoSprite: null,
            dataList: [],
            texture_width: 144,
            texture_height: 144
        }, t;
    }();
    e.GuessLike = s;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = function () {
        function t() { }
        return t.Run = function () {
            t.Next();
        }, t.Next = function () {
            t.data.adid && t.data.adid.destroy(), t.data.adid = wx.createBannerAd({
                adUnitId: n.Data.conf.gdt,
                style: {
                    left: n.Data.conf.gdt_pos_left,
                    width: n.Data.conf.gdt_pos_width,
                    top: n.Data.conf.gdt_pos_top
                }
            }), t.data.adid.onError(function () {
                console.log("onError");
            }), t.data.adid && (t.data.adid.onResize(function () {
                var e = 0, i = 0, r = n.Data.conf.coverright, a = n.Data.conf.coverleft, s = n.Data.conf.covertop;
                if (n.Data.conf.coverbottom, t.data.adid) {
                    var o = t.data.adid.style.realWidth, h = t.data.adid.style.realHeight;
                    i = s ? n.Data.conf.default_params.gdt_top : n.Data.conf.windowHeight - h - n.Data.conf.default_params.gdt_bottom - 5,
                        e = r || a ? !r && a ? n.Data.conf.default_params.gdt_left : n.Data.conf.windowWidth - o + n.Data.conf.default_params.gdt_right : (n.Data.conf.windowWidth - o) / 2,
                        t.data.adid.style.left = e, t.data.adid.style.top = i;
                }
            }), t.data.adid.show()), t.data.timer = setTimeout(t.Next, n.Data.conf.banner_interval);
        }, t.StopTimer = function () {
            t.data.timer && (clearTimeout(t.data.timer), t.data.timer = 0);
        }, t.Hide = function () {
            t.data.adid && (t.data.adid.destroy(), t.data.adid = 0, t.StopTimer());
        }, t.data = {
            adid: void 0,
            timer: void 0
        }, t;
    }();
    e.GDT = r;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = i(5), a = i(1), s = i(2), o = i(3), h = i(8), l = i(7), u = function () {
        function t() { }
        return t.init = function (t, e, i, n, a) {
            void 0 === i && (i = null), void 0 === n && (n = null), void 0 === a && (a = !0),
                r.SDK.init(t, e, i, n, a);
        }, t.getOpen = function () {
            return n.Data.conf.allowShare;
        }, t.Report = function (t, e) {
            void 0 === e && (e = ""), a.Report.report(t, e);
        }, t.report = function (t, e) {
            void 0 === e && (e = ""), a.Report.report(t, e);
        }, t.reportWithAppId = function (t, e, i) {
            void 0 === i && (i = ""), a.Report.reportWithAppId(t, e, i);
        }, t.getMoreNode = function () {
            return s.More.getMoreNode();
        }, t.getBannerNode = function () {
            return o.Banner.getBannerNode();
        }, t.HideMore = function () {
            s.More.HideMore();
        }, t.hideMore = function () {
            s.More.HideMore();
        }, t.HideBanner = function () {
            o.Banner.HideBanner();
        }, t.hideBanner = function () {
            o.Banner.HideBanner();
        }, t.ShowMore = function () {
            s.More.ShowMore();
        }, t.showMore = function () {
            s.More.ShowMore();
        }, t.ShowBanner = function (t) {
            void 0 === t && (t = null), null != t && (n.Data.conf.gdt = t.gdt ? t.gdt : n.Data.conf.gdt),
                o.Banner.ShowBanner();
        }, t.showBanner = function (t) {
            void 0 === t && (t = null), null != t && t.gdt && (n.Data.conf.gdt = t.gdt), o.Banner.ShowBanner();
        }, t.ShowDrawer = function () {
            l.Drawer.Show();
        }, t.HideDrawer = function () {
            l.Drawer.Hide();
        }, t.SetDrawerScale = function (t) {
            l.Drawer.SetScale(t);
        }, t.GetDrawerNode = function () {
            return l.Drawer.GetDrawerNode();
        }, t.reportTypes = a.Report.ReportTypes, t.ReportTypes = a.Report.ReportTypes, t.Theme = {
            BLUE: 1,
            YELLOW: 2,
            YH: 3
        }, t.getFavoNode = function () {
            return h.GuessLike.getFavoNode();
        }, t.showFavoNode = function () {
            return h.GuessLike.showFavoNode();
        }, t.hideFavoNode = function () {
            return h.GuessLike.hideFavoNode();
        }, t;
    }();
    e.AladinSDK = u;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(4), r = i(1), a = function () {
        function t() { }
        return t.init = function () {
            t.share();
        }, t.share = function () {
            var t = wx.shareAppMessage;
            Object.defineProperty(wx, "shareAppMessage", {
                configurable: !0,
                enumerable: !0,
                writable: !0,
                value: function () {
                    var e = (arguments[0] || {}).query || "";
                    if (!n.Utils._parseQueryString(e).Ads) {
                        var i = "";
                        e && (i = "&"), i += "Ads=a_Share&AdsPos=default", arguments[0].query = e + i;
                    }
                    if (arguments[0].success) {
                        var a = arguments[0].success;
                        arguments[0].success = function (t) {
                            r.Report.report(r.Report.ReportTypes.SHARE), a(t);
                        };
                    } else arguments[0].success = function (t) {
                        r.Report.report(r.Report.ReportTypes.SHARE);
                    };
                    return console.log("share params:"), console.log(arguments), t.apply(this, arguments);
                }
            });
        }, t;
    }();
    e.Intercept = a;
}, function (t, e, i) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var n = i(0), r = i(5), a = i(1), s = i(2), o = i(3), h = i(8), l = i(7), u = function () {
        function t() { }
        return t.init = function (t, e, i, n, a) {
            void 0 === i && (i = null), void 0 === n && (n = null), void 0 === a && (a = !0),
                r.SDK.init(t, e, i, n, a);
        }, t.getOpen = function () {
            return n.Data.conf.allowShare;
        }, t.Report = function (t, e) {
            void 0 === e && (e = ""), a.Report.report(t, e);
        }, t.report = function (t, e) {
            void 0 === e && (e = ""), a.Report.report(t, e);
        }, t.reportWithAppId = function (t, e, i) {
            void 0 === i && (i = ""), a.Report.reportWithAppId(t, e, i);
        }, t.getMoreNode = function () {
            return s.More.getMoreNode();
        }, t.getBannerNode = function () {
            return o.Banner.getBannerNode();
        }, t.HideMore = function () {
            s.More.HideMore();
        }, t.hideMore = function () {
            s.More.HideMore();
        }, t.HideBanner = function () {
            o.Banner.HideBanner();
        }, t.hideBanner = function () {
            o.Banner.HideBanner();
        }, t.ShowMore = function () {
            s.More.ShowMore();
        }, t.showMore = function () {
            s.More.ShowMore();
        }, t.ShowBanner = function (t) {
            void 0 === t && (t = null), null != t && (n.Data.conf.gdt = t.gdt ? t.gdt : n.Data.conf.gdt),
                o.Banner.ShowBanner();
        }, t.showBanner = function (t) {
            void 0 === t && (t = null), null != t && t.gdt && (n.Data.conf.gdt = t.gdt), o.Banner.ShowBanner();
        }, t.ShowDrawer = function () {
            l.Drawer.Show();
        }, t.HideDrawer = function () {
            l.Drawer.Hide();
        }, t.SetDrawerScale = function (t) {
            l.Drawer.SetScale(t);
        }, t.GetDrawerNode = function () {
            return l.Drawer.GetDrawerNode();
        }, t.reportTypes = a.Report.ReportTypes, t.ReportTypes = a.Report.ReportTypes, t.Theme = {
            BLUE: 1,
            YELLOW: 2,
            YH: 3
        }, t.getFavoNode = function () {
            return h.GuessLike.getFavoNode();
        }, t.showFavoNode = function () {
            return h.GuessLike.showFavoNode();
        }, t.hideFavoNode = function () {
            return h.GuessLike.hideFavoNode();
        }, t;
    }();
    e.AladinSDK = u;
}]);